package cn.com.wantools.service.provider;

import cn.com.wantools.model.unitconvert.UcConvertTable;
import cn.com.wantools.model.unitconvert.UcConvertType;
import cn.com.wantools.service.UcConvertTableService;
import cn.com.wantools.service.UcConvertTypeService;
import io.jboot.aop.annotation.Bean;
import io.jboot.db.model.Columns;
import io.jboot.service.JbootServiceBase;

import java.util.List;
import java.util.stream.Collectors;

@Bean
public class UcConvertTableServiceProvider extends JbootServiceBase<UcConvertTable> implements UcConvertTableService {

    @Override
    public List<UcConvertTable> queryConvertTableByConvertType(String convertType) {
        return findListByColumns(Columns.create("convert_type", convertType), "orders asc");
    }
}
